/**
 * @author 赵宇航
 * @create date 2022-02-22 10:22:15
 * @modify date 2022-03-08 14:30:00
 * @desc 自定义配置
 */


 module.exports = {
    // 1. 修改src为examples
    pages: {
      index: {
        entry:"examples/main.js",
        template: "public/index.html",
        filename: "index.html"
      }
    },
    configureWebpack: {
      module: {
        rules: [
          {
            test: /\.js$/,
            loader: 'babel-loader',
            exclude: /node_modules/
          },
        ],
      },
    },
    chainWebpack: config => {
      config.module
        .rule('js')
        .include
        // 把packages加入到打包编译中
        .add('/packages')
        .end()
    },
    productionSourceMap: false
  }
  